package dongshi.daddy.responsibilitychain.uml;

// 具体处理者角色1
class ConcreteHandler1 extends Handler {

    public void handleRequest(String request) {
        System.out.println("处理者1号Handler处理请求: " + request);
        Handler next;
        if ((next = getNext()) != null) {
            next.handleRequest(request);
        } else {
            System.out.println("没有其他handler了，处理请求结束！");
        }
    }

}
